package com.student.controller;

import com.student.entity.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {

    @GetMapping("/one/{id}")
    public Object getOne(@PathVariable Integer id){
        return Student.builder().id(id).name("tom").build();
    }
}
